package vn.edu.uit.service;

/**
 * UITResponseHandle class.
 *
 * @author HaiGiang
 */
public class UITResponseHandle {
	
	/** The Constant CODE_200_OK. */
	public static final int CODE_200_OK = 200;
    
    /** The Constant CODE_400. */
    public static final int CODE_400 = 400;
    
    /** The Constant CODE_404. */
    public static final int CODE_404 = 404;
    
    /** The Constant CODE_403. */
    public static final int CODE_403 = 403;
    
    /** The Constant CODE_INVALID_PARAMS. */
    public static final int CODE_INVALID_PARAMS = 999;
    
    /** The Constant CODE_HTTP_FAIL. */
    public static final int CODE_HTTP_FAIL = 900;
    
    /** The Constant CODE_FILE_COMPRESS_FAIL. */
    public static final int CODE_FILE_COMPRESS_FAIL = 905;
    
    /**
     * Constructor Reponse.
     */
    public static class Response{
        
        /** The error code. */
        public int errorCode = 200;
        
        /** The decription. */
        public String decription = "";

        /**
         * Contructor Response.
         */
        public Response() {
        }

        /**
         * Contructor Response.
         *
         * @param errorCode the error code
         * @param decription the decription
         */
        public Response(int errorCode, String decription) {
            this.errorCode = errorCode;
            this.decription = decription;
        }
    }
}
